﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Net.Sockets;

namespace Network
{
    public class ReadMessage
    {
        public ReadMessage(TcpClient client, BinaryReader dataReader, ushort messageID)
        {
            m_client = client;
            m_dataReader = dataReader;
            m_messageID = messageID;
        }

        private BinaryReader m_dataReader;
        private TcpClient m_client;
        private ushort m_messageID;

        public BinaryReader DataReader { get { return m_dataReader; } }
        public TcpClient Client { get { return m_client; } }
        public ushort MessageID { get { return m_messageID; } }
    }

    public class SendMessage
    {
        public SendMessage(MemoryStream stream, ushort mid)
        {
            m_stream = stream;
            m_messageID = mid;
        }

        private MemoryStream m_stream;
        private ushort m_messageID;

        public MemoryStream Stream { get { return m_stream; } }
        public ushort MessageID { get { return m_messageID; } }
    }
}